dontDither
Type
property
Summary
Specifies whether 24-bit images are dithered on displays with fewer colors.
Syntax
set the dontDither of <image> to {true | false}
Description
Use the dontDither property to control how bitmapped images such as JPEGs or PNGs behave when the stack is used on a display whose bit depth is 8 bits (256 colors) or fewer.
If the dontDither of an image is set to true, then when that image is displayed on an 8- bit screen, colors that are not part of the current color table are displayed as a solid block of the closest available color. This may create visible banding on images with continuous gradations of color.
If the dontDither of an image is false, colors that are not part of the current color table are displayed as a dithered pattern made up of two or more close colors, in order to approximate the exact color. This is preferable for images such as photographs that include continuous gradations of color, but may produce speckling on images with large blocks of solid color.
The setting of the dontDither property has no effect on 24-bit or 16-bit screens.
Examples
set the dontDither of image "Photo" to false
set the dontDither of image "Line Art" to true
Related
property: screenGamma, bufferHiddenImages, colorMap
function: screenDepth
glossary: property, dither, JPEG, bitmap, bit, color table, PNG, bit depth
keyword: image
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile